from django.db import models

# Create your models here.


class countCom(models.Model):
    com_good = models.CharField(max_length=10)
    com_error = models.CharField(max_length=10)


class HistoryComError(models.Model):
    comID = models.CharField(max_length=15)
    date = models.CharField(max_length=10)
    name = models.CharField(max_length=30)


class computer(models.Model):
    comID = models.CharField(max_length=15)
    status = models.CharField(max_length=10)
    errorID = models.ForeignKey(HistoryComError,
    to_field='id', blank=True, null=True)
